package com.business.bean.basic;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;
import net.sf.rose.jdbc.bean.annotation.View;

/**
 * @author fengjian E-mail: 9110530@qq.com
 * @version 创建时间：2019年9月21日
 */
@Setter
@Getter
@Table(name = "BAS_DRIVER", description = "驾驶员信息表")
@View(name = "BAS_DRIVER_VIEW", description = "驾驶员信息视图")
public class DriverBean extends ModelBean {

	@Column(pk = true, type = Type.定长文本, description = "车辆编号", canNull = false, size = 32, policy = "UUID")
	private String driverID = null;

	@Column(type = Type.定长文本, description = "用户编号", size = 32)
	private String userID = null;

	@Column(type = Type.变长文本, description = "用户姓名", size = 50)
	private transient String userName = null;

	@Column(type = Type.变长文本, description = "驾驶证号码", size = 30)
	private String driveCertiNo = null;

	@Column(type = Type.日期时间, description = "初次领证日期")
	private Date giveCertDate = null;

	@Column(type = Type.日期时间, description = "有效截止日期")
	private Date outDate = null;

	@Column(type = Type.变长文本, description = "准驾车型", size = 30)
	private String carType = null;

	@Column(type = Type.变长文本, description = "说明", size = 250)
	private String description = null;

	/** 1：有；2：无 */
	@Column(type = Type.数字整型, description = "有无重大交通事故")
	private int trafficAccident = 0;

	/** 有效：1；结束：2 */
	@Column(type = Type.数字整型, description = "状态")
	private int status = 0;

}
